const routes = [{
  path: '/home',
  component: () => import("@/views/middleView.vue"),
  name: 'home',
  meta: {
    icon: 'icon-icon_list',
    title: '案场列表',
    sideBar: true,
    ifNocholdren: true,
  },
  redirect: 'home/crimeSceneList',
  children: [{
    path: 'crimeSceneList',
    name: 'crimeSceneList',
    component: () =>
      import("@/views/proList/proList.vue"),
    meta: {
      title: '案场列表',
      sideBar: false,
      parentPath: '/home',
      keepAlive: true,
      noAuthor: true, //是否需要权限 
    }
  }, ]
}, {
  path: "/pro",
  component: () => import("@/views/middleView.vue"),
  name: "pro",
  meta: {
    title: '产品管理',
    sideBar: true,
  },
  children: [{
      path: "proList",
      name: "proList",
      component: () =>
        import("@/views/proList/proList.vue"),
      meta: {
        title: "产品列表",
        sideBar: true,
      },
    },

  ]
}, {
  path: "/activity",
  component: () => import("@/views/middleView.vue"),
  name: "activity",
  meta: {
    title: '活动管理',
    sideBar: true,
  },
  children: [{
      path: "activityList",
      name: "activityList",
      component: () =>
        import("@/views/activity/activity.vue"),
      meta: {
        title: "活动列表",
        sideBar: true,
      },
    },

  ]
}, {
  path: "proList1",
  name: "proList1",
  component: () =>
    import("@/views/proList/proList.vue"),
  meta: {
    title: "产品列表1",
    sideBar: true,
  },
}]

export default routes